﻿using DTcms.BLL;
using DTcms.Common;
using DTcms.Web.Mvc.UI;
using System.Data;

namespace System.Web.Mvc.Html
{
    public static class HtmlHelperSearch
    {
        public static BaseController _base = new BaseController();

        /// <summary>
        /// 查询数据 用于Tags
        /// </summary>
        public static DataTable get_search_list(this HtmlHelper htmlHelper, int site_id, int tags_id, int page, int pagesize, out int totalcount)
        {
            return _base.get_search_list(site_id, tags_id, page, pagesize, out totalcount);
        }

        /// <summary>
        /// 查询数据 用于普通检索数据库
        /// </summary>
        public static DataTable get_search_list(this HtmlHelper htmlHelper, int site_id, string channel_name, string tags, string keyword, int page, int _pagesize, out int _totalcount)
        {
            return _base.get_search_list(site_id, channel_name, tags, keyword, page, _pagesize, out _totalcount);
        }
    }
}
